<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>4_2_2-3-鼠标按键修饰符</title>
</head>

<body>


  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <div id="Application">
    <div @click.left="click">单击事件</div>
  </div>
  <script>
    const App = {
      data() {
        //返回对象
        return {};
      },

      methods: {
        click() {
          console.log("左键单击啦");
        },
      },
    };
    Vue.createApp(App).mount("#Application");
  </script>
</body>

</html>